home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4972 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.smart.net!hymie
  2. From: hymie@lactose.smart.net (hymie!)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Finding a prime number
  5. Date: 11 Feb 1996 20:47:55 GMT
  6. Organization: At home
  7. Message-ID: <4flklr$hgl@news.smart.net>
  8. References: <4e875s$nqk@reader2.ix.netcom.com> <7c8_9601301722@tor250.org> <4f7n1o$ol9@mother.usf.edu> <4fl2tl$ln6@ns2.emirates.net.ae>
  9. NNTP-Posting-Host: lactose.smart.net
  10.  
  11. and lo, there was much rejoicing among the people, as
  12.   kannan@emirates.net.ae (Kannan) writes:
  13.  
  14. >Is it not easy to just check whether the integer is divisible by 2 or
  15. >3 and decide (except 1 & 3 which is a prime number)? For ex., 723232
  16. >this would be divisible by 2 so not a prime number. And 997 cannot be
  17. >divided by these 2. This is prime number. Please correct me if I am
  18. >wrong without attacking me personally :)
  19.  
  20. 35/2 = 17.5_
  21. 35/3 = 11.66
  22.  
  23. therefore, 35 is prime.
  24.  
  25. ..hymie                                                 hymie@lactose.smart.net
  26. self-appointed chairman of the 3-man keep-the-browns-in-cleveland foundation
  27. GCS/M d-(--) s: a25 C++ UL++ P+ E- W++ N+++ w--- M- PS+ PGP+ Y+ t+/* tv+ DI++
  28. b+ G+ h- e++/* r++ y+    pgp key at web page    http://www.smart.net/~hymowitz/
  29. ===============================================================================
  30. sorry, this .sig is not a winner.  remember to check the .sig every time
  31. you read a hymie! brand post or letter.  please try again.  good luck!
  32. ===============================================================================
  33.